{include file='fcworker/fc_head'}
<style>
    .picker-form{
        display: inline-block;
        width: 20%;
    }
    #select-pick{
        text-align: left !important;
        margin-left: -25px;
    }
</style>
<body style="background:#f8f8f8">
<div id="mescroll" class="mescroll">
    <div id="app">
        <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
        <div class="setTitle">
            <a href="javascript:history.back(-1)"></a>
            个人日报
        </div>
        <div class="h167"></div>
        <!--个人日报-->
        <div class="activeBox">
            <div class="activeBar">
                <div class="activeInfor activeTab">

                    <div class="tabTit">当前选择：
                        <form  class="picker-form" >
                            <select name="uid" onchange="submitForm();" id="select-pick">
                                {loop $wlist  $key $item}
                                <option value="{$item['uid']}" {php echo $uid==$item['uid']?'selected':'';}>{$item['name']}</option>
                                {/loop}
                            </select>
                        </form>
                    </div>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <th>日期</th>
                            <th>新粉丝</th>
                            <th>转发</th>
                            <th>浏览量</th>
                            <th>直销</th>
                            <th><span>成交</span></th>
                            <th>线下</th>
                        </tr>
                        {loop $report $key $item}
                        <tr>
                            <td>{$item['riqi']}</td>
                            <td>{$item['newfans']}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['recordzx']}</td>
                            <td><span>{$item['record']}</span></td>
                            <td>{$item['recordxx']}</td>
                        </tr>
                        {/loop}
                    </table>
                </div>
            </div>
        </div>

        <div class="h110"></div>
    </div>
</div>
</body>
<script>
    const mescroll = new MeScroll("mescroll", {
        down: {
            auto: false,
            callback: () => {
                mescroll.endSuccess();
                setTimeout(() => {
                    window.location.reload();
                },500)
            }
        },
        up: {
            use: false
        }
    })
    $('.choseBar2 span').click(function(){
        $(this).addClass('on').siblings().removeClass('on');
    })
    $('.moreChose span').click(function(){
        if($(this).hasClass('on')){
            $(this).removeClass('on')
        }else{
            $(this).addClass('on')
        }
    });
    function submitForm() {
        var options = $("#select-pick option:selected");
        var val = options.val();
        if (val){
            var jump_url = "/{php echo createMobileUrl('x_report_ren',array('themeid'=>$themeid));}" + '&uid='+val;
            self.location.href = jump_url;
        }

    }
</script>
{include file='fcworker/fc_base_foot'}
</html>
